package cn.krui.project.bean.article;

import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/6/11 16:41:45
 * 分离出查询实体
 */
@ApiModel(value = "qr_article_log", description = "操作记录")
@TableName(value = "qr_article_log")
public class ArticleLogView {
	@ApiModelProperty(value = "主键id")
	@TableId(type = IdType.AUTO,value = "id")
	@NotNull(message = "主键id不能为空")
	private Integer id;
	@ApiModelProperty(value = "内容id")
	@TableField(value="article_id")
	@NotNull(message = "内容id不能为空")
	private Integer article_id;
	@ApiModelProperty(value = "操作用户id")
	@TableField(value="user_id")
	private Integer user_id;
	@ApiModelProperty(value = "操作用户名")
	@TableField(value="user_name")
	private String user_name;
	@ApiModelProperty(value = "操作时间")
	@TableField(value="create_time")
	private Timestamp create_time;
	@ApiModelProperty(value = "备注")
	@TableField(value="note")
	private String note;
	@ApiModelProperty(value = "数据版本字段")
	@TableField(value="version_id")
	@Version
	private Integer version_id;

 
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
 
	public Integer getArticle_id() {
		return article_id;
	}
	public void setArticle_id(Integer article_id) {
		this.article_id = article_id;
	}
 
	public Integer getUser_id() {
		return user_id;
	}
	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}
 
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
 
	public Timestamp getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}
 
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
 
	public Integer getVersion_id() {
		return version_id;
	}
	public void setVersion_id(Integer version_id) {
		this.version_id = version_id;
	}

}